package com.haixiaoke.saas.repository.service;


import com.haixiaoke.saas.repository.pojo.HouseQuitLease;
import com.haixiaoke.saas.repository.vo.HouseQuitLeaseVo;

import java.util.List;

/**
 * 公寓管理退租记录Service接口
 *
 * @author qixi
 * @date 2023-04-18
 */
public interface IHouseQuitLeaseService {
    /**
     * 查询公寓管理退租记录
     *
     * @param quitLeaseId 公寓管理退租记录主键
     * @return 公寓管理退租记录
     */
    public HouseQuitLease selectHouseQuitLeaseByQuitLeaseId(Long quitLeaseId);

    /**
     * 查询公寓管理退租记录列表
     *
     * @param houseQuitLease 公寓管理退租记录
     * @return 公寓管理退租记录集合
     */
    List<HouseQuitLeaseVo> selectHouseQuitLeaseList(HouseQuitLease houseQuitLease);

    /**
     * 新增公寓管理退租记录
     *
     * @param houseQuitLease 公寓管理退租记录
     * @return 结果
     */
    public int insertHouseQuitLease(HouseQuitLease houseQuitLease);

    /**
     * 修改公寓管理退租记录
     *
     * @param houseQuitLease 公寓管理退租记录
     * @return 结果
     */
    int updateHouseQuitLease(HouseQuitLease houseQuitLease);

    /**
     * 批量删除公寓管理退租记录
     *
     * @param quitLeaseIds 需要删除的公寓管理退租记录主键集合
     * @return 结果
     */
    int deleteHouseQuitLeaseByQuitLeaseIds(Long[] quitLeaseIds);

    /**
     * 删除公寓管理退租记录信息
     *
     * @param quitLeaseId 公寓管理退租记录主键
     * @return 结果
     */
    int deleteHouseQuitLeaseByQuitLeaseId(Long quitLeaseId);

    boolean checkHouseIdAndTenantIdUnique(String houseId, String id);
    boolean checkOrderIdUnique(String orderId);

    HouseQuitLeaseVo selectHouseQuitLeaseVoByOrderId(String orderId);
    HouseQuitLease selectHouseQuitLeaseByOrderId(String orderId);



}
